home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7296 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: soap.news.pipex.net!pipex!usenet
  2. From: J P Crocker <whl.adv.eng@dial.pipex.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: DLL's with classes in them
  5. Date: Thu, 22 Feb 1996 16:35:33 +0000
  6. Organization: UnipalmPIPEX server (post doesn't reflect views of UnipalmPIPEX)
  7. Message-ID: <312C9B55.71F3@dial.pipex.com>
  8. NNTP-Posting-Host: am173.du.pipex.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (Win16; I)
  13.  
  14. Here's one...
  15.  
  16. I'm using Borland Turbo C++ 3.1, and am trying to create a DLL with a class 
  17. definition which I can import into my App.  I've decared the class in the DLL 
  18. using the EXPORT macro:
  19.  
  20.    class EXPORT class_name
  21.    {
  22.     ...
  23.    }
  24.  
  25. and I've included the .lib file for the DLL in my project file. I now need to 
  26. put some reference to class_name in my main application code so I can derive 
  27. descendant classes from class_name.  How do I do this? Also, in the previous 
  28. version I defined class_name in a header file, and included a prototype of 
  29. the class at the top of the code ..
  30.  
  31.   class class_name;
  32.  
  33. so that I could create pointers to class_name before it was defined.  What is 
  34. the appropriate syntax for doing this when class_name is contained in a DLL?
  35.  
  36. Thanks
  37.  
  38. Jason Crocker                       
  39.     email: whl.adv.eng@dial.pipex.com
  40.